<?php

class UndeadStudents_Forms_Upload extends Zend_Form {

    public function init() {
        
        $this->setAction('/index')
                ->setMethod('post');

        $file = new Zend_Form_Element_File('file');
        $file->setLabel('Arquivo:');
        $file->setRequired(true);
        $this->addElement($file);

        $description = $this->createElement('textarea', 'description', array('label' => 'Descreva seu arquivo:', 'class' => 'txaDescription'));
        $this->addElement($description);
        
        $submit = $this->createElement('submit', 'submit', array('label' => 'Enviar arquivo'));
        $this->addElement($submit);
    }

}